//
// Created by 32827 on 2023/11/23.
//

#ifndef YZFRAME_YZ_TIME_H
#define YZFRAME_YZ_TIME_H
#include "yz.h"
#include "yz_interrupt.h"
//单位us
#define YZ_SystemOSTimeEXACT 10
#define YZ_SystemOSTimeM_SIZE (1000*1000*60)
struct YZ_TIME{
    uint32_t SYStemOSTime;
    uint32_t SYStemOSTimeM;
};
typedef struct YZ_TIME YZ_TIME;
void yz_time_init(uint32_t system_clock);
void yz_time_init_tim(uint32_t system_clock);
YZ_TIME * yz_time_get();
uint32_t yz_time_get_us();
uint32_t yz_time_get_min();
void yz_time_delay_ms(uint32_t data);
void yz_time_handler(YZF_GLOBAL_INDEX index);
#endif //YZFRAME_YZ_TIME_H
